package day05;

public class MethodDemo1 {
    public static void main(String[] args) {
        say();
        say("张三");
        say("李四",20);
    }
    public static void say(String name,int age){
        if (age >= 50){
            return;
        }
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了！");
    }
    public static void say(String name){
        System.out.println("大家好，我叫"+name+",今年age岁了");
    }
    public static void say(){
        System.out.println("大家好，我叫XXX，今年age岁了");
    }
    public static void say(int age){}
    public static void say(int age,String name){}
    //public static void say(String address){}
    //public static int say(){}
}
